package org.example.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

//@Controller
//@ResponseBody
@RestController
@RequestMapping("/user2")
public class User2Controller {

    @RequestMapping("/test")
    public String test(){
        return "/login.html";
    }

    @RequestMapping("/test2")
    public Object test2(){
        Map<String, Object> data = new HashMap<>();
        data.put("a", "张三");
        data.put("b", "李四");
        return data;
    }
}
